package com.qf.pojo;

import java.util.Date;

/**
 * @author Kuke
 * @date 2022/3/2 17:31
 * 用户实体
 */
public class User {
    /*
    *

uid varchar(32) NOT NULL
username    varchar(20) NULL
password    varchar(32) NULL
name    varchar(20) NULL
email   varchar(30) NULL
telephone   varchar(20) NULL
birthday    date NULL
sex varchar(10) NULL
state   int NULL
code    varchar(64) NULL
    * */
    private String uid ; //用户编号
    private String username ; //用户真实姓名
    private String password ; //用户名密码
    private String name ; //昵称
    private String sex ;
    private String email ; //邮箱
    private String telephone;//手机号
    private Date  birthday ; //出生日期
    private int state ; //激活状态 ,默认值0 ,未激活 1,激活
    private String code ;//用户激活码

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", birthday=" + birthday +
                ", state='" + state + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
